using System;
using System.Drawing;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using System.Drawing.Printing;
using System.ComponentModel;

namespace OpenComposite.Base
{
	/// <summary>
	/// Summary description for PasswordBox.
	/// </summary>
	[ToolboxBitmap(typeof(TextBox))]
	[ToolboxItem(false)]
	public class PasswordBox : System.Windows.Forms.TextBox
	{
		private const int ES_PASSWORD = 0x0020;


		public PasswordBox() : base()
		{
		}

		protected override CreateParams CreateParams {
			get {
				CreateParams cp = base.CreateParams;

				cp.Style |= ES_PASSWORD;
		        
				return cp;
			}
		}

	}
}
